package com.isdepci.project.gasEmission.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.isdepci.project.gasEmission.mapper.PurchasedEnergyMapper;
import com.isdepci.project.gasEmission.domain.PurchasedEnergy;
import com.isdepci.project.gasEmission.service.IPurchasedEnergyService;

/**
 * 能源购买Service业务层处理
 *
 * @author isdepci
 * @date 2023-09-01
 */
@Service
public class PurchasedEnergyServiceImpl implements IPurchasedEnergyService
{
    @Autowired
    private PurchasedEnergyMapper purchasedEnergyMapper;

    /**
     * 查询能源购买
     */
    @Override
    public PurchasedEnergy selectPurchasedEnergyById(Long id)
    {
        return purchasedEnergyMapper.selectPurchasedEnergyById(id);
    }

    /**
     * 查询能源购买列表
     */
    @Override
    public List<PurchasedEnergy> selectPurchasedEnergyList(PurchasedEnergy purchasedEnergy)
    {
        return purchasedEnergyMapper.selectPurchasedEnergyList(purchasedEnergy);
    }

    /**
     * 新增能源购买
     */
    @Override
    public int insertPurchasedEnergy(PurchasedEnergy purchasedEnergy)
    {
        return purchasedEnergyMapper.insertPurchasedEnergy(purchasedEnergy);
    }

    /**
     * 修改能源购买
     */
    @Override
    public int updatePurchasedEnergy(PurchasedEnergy purchasedEnergy)
    {
        return purchasedEnergyMapper.updatePurchasedEnergy(purchasedEnergy);
    }

    /**
     * 批量删除能源购买
     */
    @Override
    public int deletePurchasedEnergyByIds(Long[] ids)
    {
        return purchasedEnergyMapper.deletePurchasedEnergyByIds(ids);
    }

    /**
     * 删除能源购买信息
     */
    @Override
    public int deletePurchasedEnergyById(Long id)
    {
        return purchasedEnergyMapper.deletePurchasedEnergyById(id);
    }
}
